/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseBusiness;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2022-06-16
**/
@Entity
@Data
@Table(name="BIS_FPRY")
public class Fpry extends BaseBusiness implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "BIS_FPRY_ID")
    @ApiModelProperty(value = "主键ID")
    private String bisFpryId;

    @Column(name = "BIS_FPRY_ZHSQ_ID")
    @ApiModelProperty(value = "居家照护申请ID")
    private Long bisFpryZhsqId;

    @Column(name = "BIS_FPRY_RYGL_ID")
    @ApiModelProperty(value = "人员ID")
    private Long bisFpryRyglId;

    @Column(name = "BIS_FPRY_RYGL_XM")
    @ApiModelProperty(value = "人员姓名")
    private String bisFpryRyglXm;

    @Column(name = "BIS_FPRY_FPSJ")
    @ApiModelProperty(value = "分配时间")
    private Date bisFpryFpsj;

    @Column(name = "BIS_FPRY_ZT")
    @ApiModelProperty(value = "分配状态")
    private String bisFpryZt;

    @Column(name = "BIS_FPRY_RYLX")
    @ApiModelProperty(value = "人员类型")
    private String bisFpryRylx;

    @Column(name = "BIS_FPRY_WCSJ")
    @ApiModelProperty(value = "完成时间")
    private Date bisFpryWcsj;

    public void copy(Fpry source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}